package com.bawei.product.domain;

import com.bawei.common.core.annotation.Excel;
import com.bawei.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 商品信息对象 mall_product_info
 *
 * @author ruoyi
 * @date 2024-05-26
 */
@Data
public class MallProductInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String productDesc;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String type;

    /** 冗余字段 */
    @Excel(name = "冗余字段")
    private String typeIds;

    /** 商品主图 */
    @Excel(name = "商品主图")
    private String img;

    /** 商品轮播图 */
    @Excel(name = "商品轮播图")
    private String carouselImages;

    /** 商品评论数 */
    @Excel(name = "商品评论数")
    private Long commentCount;

    /** 商品收藏人气 */
    @Excel(name = "商品收藏人气")
    private Long collectCount;

    /** 品牌信息 */
    @Excel(name = "品牌信息")
    private String brand;

    /** 商品状态 */
    @Excel(name = "商品状态")
    private String status;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 搜索关键字 */
    @Excel(name = "搜索关键字")
    private String keywords;

    /** 规格信息 */
    @Excel(name = "规格信息")
    private Long ruleId;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private Long revision;
    @Excel(name = "创建人")
    private String createBy;
    @Excel(name = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @Excel(name = "更新人")
    private String updateBy;
    @Excel(name = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
